package pri.damai.xiaowu.usercenter.sysauth.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pri.damai.xiaowu.usercenter.sysauth.entity.SysRole;

import java.util.Set;

/**
 * 角色表(SysRole)表数据库访问层
 * @Desc
 * @Author DaMai
 * @Date 2022-03-03 17:00:32
 */
@Mapper
public interface SysRoleDao extends BaseMapper<SysRole> {

    Set<SysRole> getRoleByUserIdAndSysId(@Param("userId") Integer userId, @Param("sysId") Integer sysId);

}
